import request from '@/utils/request'

// 查询周工作汇报列表
export function listWeekReport(query) {
  return request({
    url: '/cooperate/weekReport/list',
    method: 'get',
    params: query
  })
}

// 查询周工作汇报详细
export function getWeekReport(id) {
  return request({
    url: '/cooperate/weekReport/' + id,
    method: 'get'
  })
}

// 新增周工作汇报
export function addWeekReport(data) {
  return request({
    url: '/cooperate/weekReport',
    method: 'post',
    data: data
  })
}

// 修改周工作汇报
export function updateWeekReport(data) {
  return request({
    url: '/cooperate/weekReport',
    method: 'put',
    data: data
  })
}

// 删除周工作汇报
export function delWeekReport(id) {
  return request({
    url: '/cooperate/weekReport/' + id,
    method: 'delete'
  })
}

// 补录周工作汇报
export function remedyWeekReport(data) {
  return request({
    url: '/cooperate/weekReport/remedy',
    method: 'post',
    data: data
  })
}